package itheima.d01;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {

        FileReader fil=new  FileReader("D:\\javabasepro\\java AdvanceProject\\day11\\src\\itheima\\d01\\kunkun.txt");



        int rs;
        while((rs=fil.read())!=3){
            System.out.print((char)rs);
        }






        char[] chars = new char[2];
        int len =-1;
        while((len=fil.read(chars))!=-1){
            System.out.print(new String(chars,0,len));
        }

    }

}
